package cn.javasea.websocket.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author longxiaonan
 * @since 2020-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("p_notice")
public class Notice implements Serializable {

    private static final long serialVersionUID=1L;

    private String id;

    private String title;

    private String type;

    @TableField(exist = false)
    private String method;
    /**
     * 业务单id
     */
    private String sourceId;

    /**
     * 业务单单号
     */
    private String bzCode;

    private String content;

    private Integer state;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    private String createBy;

    private String createByName;

    /**
     * 最后修改时间
     */
    private LocalDateTime lastUpdateTime;

    /**
     * 最后修改人
     */
    private String lastUpdateBy;

    /**
     * 最后修改人
     */
    private String lastUpdateByName;

    /**
     * 租户id
     */
    private String tenantId;


    public static final String ID = "id";

    public static final String TITLE = "title";

    public static final String TYPE = "type";

    public static final String SOURCE_ID = "source_id";

    public static final String BZ_CODE = "bz_code";

    public static final String CONTENT = "content";

    public static final String STATE = "state";

    public static final String CREATE_TIME = "create_time";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_BY_NAME = "create_by_name";

    public static final String LAST_UPDATE_TIME = "last_update_time";

    public static final String LAST_UPDATE_BY = "last_update_by";

    public static final String LAST_UPDATE_BY_NAME = "last_update_by_name";

    public static final String TENANT_ID = "tenant_id";

}
